package com.example.demo.service.helper;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class StorageStatus {
    private Integer sid;
    private String portName;
    private Integer companyId;
    private double currentWeight;
    private int currentQuantity;
    private double maxWeight;
    private int maxQuantity;

    public double getUsagePercentage() {
        return maxWeight > 0 ? (currentWeight / maxWeight) * 100 : 0;
    }
}